/*
 * @Author: GuitarXiaohe && 2205227953@qq.com
 * @Date: 2024-01-13 17:36:22
 * @LastEditors: NaturalHulk 2066634567@qq.com
 * @LastEditTime: 2024-02-21 14:38:17
 * @FilePath: /umi/config/routes/index.ts
 * @Description:
 * QQ:2205227953,邮箱:2205227953@qq.com
 * Copyright (c) 2024 by GuitarXiaohe, All Rights Reserved.
 */
// .umirc.ts

export const dynamicRoutes = [
  {
    path: "/kf/dict/data",
    component: "system/dict/data",
    hidden: true,
    meta: {
      title: "字典数据",
      icon: "",
    },
    activeMenu: "/kf/dict",
  },
  {
    path: "/system/role-auth/user",
    component: "system/role/authUser",
    hidden: true,
    meta: {
      title: "分配用户",
      icon: "",
    },
    activeMenu: "/system/role",
  },
  // {
  //   path: "/system",
  //   name: "系统管理",
  //   routes: [
  //     {
  //       path: "/system/dict/data",
  //       component: "@/pages/system/dict/data.jsx",
  //       hidden: true,
  //       name: "字典数据",
  //       activeMenu: "/system/dict",
  //       wrappers: ["@/wrappers/auth"],
  //     },
  //     {
  //       path: "/system/role-auth/user/:id",
  //       component: "@/pages/system/role/authUser.jsx",
  //       hidden: true,
  //       name: "分配用户",
  //       activeMenu: "/system/role",
  //       wrappers: ["@/wrappers/auth"],
  //     },
  //   ],
  // },
];

export default [
  { path: "/", redirection: "/index" },
  { path: "/login", component: "login/index" },
  { path: "/index", component: "index", name: "首页", wrappers: ["@/wrappers/auth"] },
  ...dynamicRoutes,
  {
    path: "*",
    comments: "@/pages/404.tsx",
  },
];
